<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>  
<%
   String path = request.getContextPath();
   String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<body>
	   hello! &nbsp; <b>${name}</b>
		<shiro:hasRole name="管理员">  
	            <b>管理员:true</b>
	    </shiro:hasRole>
	    <shiro:lacksRole  name="管理员">  
	            <b>管理员:false</b>
	    </shiro:lacksRole >
	</body>
</html>